|
Menu location |
---|
Drafting → Polyline 2D Drafting → Polyline |
Workbenches |
Draft, BIM |
Default shortcut |
P L |
Introduced in version |
0.7 |
See also |
Draft Line, Draft BSpline |
The corners of a Draft Wire can be filleted (rounded) or chamfered by changing its 数据Fillet Radius or 数据Chamfer Size respectively. It is also possible to subdivide the edges of a Draft Wire by changing its 数据Subdivisions property.
多点定一连线
See also: Draft Tray, Draft Snap and Draft Constrain.
The single character keyboard shortcuts available in the task panel can be changed. See Draft Preferences. The shortcuts mentioned here are the default shortcuts (for version 1.0).
true
); 否则,闭合的连线将不会创建出一个面(数据Make Face false
)。false
来查看连线。双击树状视图中的元素或点击 Draft Edit按钮即可编辑连线。接下来,您可以将其中的点移到一个新位置,或点击
add point或
remove point按钮再点选连线来增添其中的点。
See also: Property editor.
A Draft Wire object is derived from a Part Part2DObject and inherits all its properties. It also has the following additional properties:
Draft
false
;将其设置为true
则为会原连线再绘制一条线段使之闭合。如果连线原本就是闭合的,此值为true
;将其设置为false
则会从连线中去掉最后一条线段,令其变为开放连线。true
则创建一个面,否则仅绘制本对象中的边。如果数据Closed为true
时,本属性才会生效。true
,因为在这种情况下不能用它来创建一个真面(proper face)。Draft
wire = make_wire(pointslist, closed=False, placement=None, face=None, support=None)
wire = make_wire(Part.Wire, closed=False, placement=None, face=None, support=None)
pointslist
来创建一个Wire
对象。
FreeCAD.Vector
,单位为毫米。Part.Wire
,从中提取各点。closed
为True
,或者如果连线中的第一个点与最后一个点为同一点,则连线是闭合的。placement
,则在此位置创建连线;否则在原点处创建连线。face
为True
,且连线是闭合的,则连线将构成一个面,即表现为一个填充图形。示例:
import FreeCAD as App
import Draft
doc = App.newDocument()
p1 = App.Vector(0, 0, 0)
p2 = App.Vector(1000, 1000, 0)
p3 = App.Vector(2000, 0, 0)
wire1 = Draft.make_wire([p1, p2, p3], closed=True)
wire2 = Draft.make_wire([p1, 2*p3, 1.3*p2], closed=True)
wire3 = Draft.make_wire([1.3*p3, p1, -1.7*p2], closed=True)
doc.recompute()